package com.nana.framework.base
{
	import flash.display.Stage;
	import flash.system.ApplicationDomain;
	import flash.utils.getTimer;

	public class App
	{
		public static var appDomain:ApplicationDomain;
		public static var appStage:Stage;
		public static var appLang:String = "en";
		private static var _stime:Number = 0;
		private static var _ctimer:Number = 0;
		
		public function App()
		{
		}
		
		public static function get stime():Number{
			if (_stime == 0){
				stime = Math.floor((new Date().getTime() / 1000));
			}
			return ((_stime + Math.floor(((getTimer() - _ctimer) / 1000))));
		}
		
		public static function set stime(time:Number):void{
			_stime = time;
			_ctimer = getTimer();
		}
	}
}